<?php
$type=$_GET['type'];
?>
<script type="text/javascript" charset="utf-8" src="../js/editor/ckeditor.js"></script>
<div class="contentWrapper">
<form name="f" method="post" action="include/articlesProc.php?act=add&type=<?php echo $type; ?>">
	<table align="center" width="100%">
		<tr>
			<td>Tiêu đề</td>
		</tr>
		<tr>
			<td width="728">
				<input type="text" name="title" style="width:595px;" />
			</td>
		</tr>
		<?php
		switch($type){
			case 'dm':
				?>
					<tr>
						<td>Loại bài viết:
						<input type='radio' name='status' value='1'  />Domain
						<input type='radio' name='status' value='2'   />Hosting
						</td>
					</tr>
			<?php	
			
			break;
			case 'w':
			?>
				<tr>
						<td>
						Loại bài viết:
						<input type='radio' name='status' value='1'   />TM-DT
						<input type='radio' name='status' value='2'   />Mua bán
						<input type='radio' name='status' value='3'   />Doanh nghiệp
						<input type='radio' name='status' value='4'   />Yêu cầu
						</td>
					</tr>
			<?php		
			break;	
			case 'pm':
			?>	
					<tr>
						<td>Loại bài viết:
						<input type='radio' name='status' value='1'   />Mobile
						<input type='radio' name='status' value='2'   />Pc
						</td>
					</tr>
		<?php
				break;			
		}
		?>
		<tr>
			<td>Nội dung</td>
		</tr>
		<tr>
			<td>
				<textarea name="detail" id="editor"></textarea>
			</td>
		</tr>
		<tr>
			<td align="center">
				<button type="submit" onClick="return articles();">Chấp nhận</button>
				<input type="button" value="Trở lại" onClick="back();">
			</td>
		</tr>	
	</table>
</form>
</div>
<script type="text/javascript" language="javascript">
    CKEDITOR.replace( 'editor',{resize_enabled:false});
</script>